using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._AviationTools._Airports._DataExchange
{
    /// <summary>
    /// <para>Import FAA 18B Shapefiles</para>
    /// <para>Imports one or more FAA Advisory Circular 150/5300-18B compliant shapefiles into a geodatabase that contains the ArcGIS Aviation Airports schema.</para>
    /// <para>将一个或多个符合 FAA Advisory Circular 150/5300-18B 的 shapefile 导入到包含 ArcGIS Aviation Airports 方案的地理数据库中。</para>
    /// </summary>    
    [DisplayName("Import FAA 18B Shapefiles")]
    public class ImportFAA18BShapefiles : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportFAA18BShapefiles()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Shapefiles</para>
        /// <para>The FAA 18B shapefiles to be imported into a geodatabase.</para>
        /// <para>要导入地理数据库的 FAA 18B shapefile。</para>
        /// </param>
        /// <param name="_airports_workspace">
        /// <para>Target Geodatabase</para>
        /// <para>The geodatabase into which the shapefiles will be imported.</para>
        /// <para>要将 shapefile 导入到其中的地理数据库。</para>
        /// </param>
        public ImportFAA18BShapefiles(List<object> _in_features, object _airports_workspace)
        {
            this._in_features = _in_features;
            this._airports_workspace = _airports_workspace;
        }
        public override string ToolboxName => "Aviation Tools";

        public override string ToolName => "Import FAA 18B Shapefiles";

        public override string CallName => "aviation.ImportFAA18BShapefiles";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _airports_workspace, _out_workspace];

        /// <summary>
        /// <para>Input Shapefiles</para>
        /// <para>The FAA 18B shapefiles to be imported into a geodatabase.</para>
        /// <para>要导入地理数据库的 FAA 18B shapefile。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Shapefiles")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_features { get; set; }


        /// <summary>
        /// <para>Target Geodatabase</para>
        /// <para>The geodatabase into which the shapefiles will be imported.</para>
        /// <para>要将 shapefile 导入到其中的地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _airports_workspace { get; set; }


        /// <summary>
        /// <para>Output Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public ImportFAA18BShapefiles SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}